package com.mindtalk.screen;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

import com.mindtalk.R;
import com.mindtalk.helper.Constants;
import com.mindtalk.transferdata.MyChannelsData;

public class ConferenceDetail extends TabActivity {
	
	/*
	 * Class Activity Pada Saat User mengklik Daftar Conference
	 * */
	
	/* Daftar Variable */
	
	/*
	 * TabHost
	 * */
	private TabHost tabhost;
	/*
	 * Data MultiUserChat
	 * */
	MyChannelsData data;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tabmainhost);
		
		tabhost = getTabHost();
		TabHost.TabSpec tabspec;
		Intent intent;
		
		Intent oldIntent = this.getIntent();
		
		/**
		 * Tab Chat Detail
		 * */
		intent = new Intent().setClass(this,ChatList.class);
		String roomname = oldIntent.getStringExtra("information");
		intent.putExtra("roomname",roomname);
		tabspec = tabhost.newTabSpec(Constants.MyChannel).setIndicator(Constants.MyChannel).setContent(intent);				
		tabhost.addTab(tabspec);
		
		/**
		 * Tab Daftar User
		 * */
		
	}
}
